<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>控制台</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
  </head>
  
  <body>
        <h1>使用 console.log() 方法在浏览器中显示 JavaScript值 </h1>
    <script type="text/javascript">
   		 var S=0;
    	for(var i=1;i<=10;i++){
    		S+=i;
    	}
 	 	console.log("求1~10的和："+S);
 	 	
 	</script>
  </body>
</html>
